package com.cos.shop.entity;


public class Product {

  private int pid;
  private int tid;
  private String pname;
  private java.util.Date ptime;
  private String pimage;
  private double pprice;
  private int pstate;
  private String pinfo;

  private Type type;

  public Type getType() {
    return type;
  }

  public void setType(Type type) {
    this.type = type;
  }

  @Override
  public String toString() {
    return "Product{" +
            "pid=" + pid +
            ", tid=" + tid +
            ", pname='" + pname + '\'' +
            ", ptime=" + ptime +
            ", pimage='" + pimage + '\'' +
            ", pprice=" + pprice +
            ", pstate=" + pstate +
            ", pinfo='" + pinfo + '\'' +
            ", type='" + type + '\'' +
            '}';
  }

  public int getPid() {
    return pid;
  }

  public void setPid(int pid) {
    this.pid = pid;
  }


  public int getTid() {
    return tid;
  }

  public void setTid(int tid) {
    this.tid = tid;
  }


  public String getPname() {
    return pname;
  }

  public void setPname(String pname) {
    this.pname = pname;
  }


  public java.util.Date getPtime() {
    return ptime;
  }

  public void setPtime(java.util.Date ptime) {
    this.ptime = ptime;
  }


  public String getPimage() {
    return pimage;
  }

  public void setPimage(String pimage) {
    this.pimage = pimage;
  }


  public double getPprice() {
    return pprice;
  }

  public void setPprice(double pprice) {
    this.pprice = pprice;
  }


  public int getPstate() {
    return pstate;
  }

  public void setPstate(int pstate) {
    this.pstate = pstate;
  }


  public String getPinfo() {
    return pinfo;
  }

  public void setPinfo(String pinfo) {
    this.pinfo = pinfo;
  }

}
